alert(12312312);

function isActiveMe(id) {
    if(id.href === location.href) {
        id.setAttribute('class', 'active');
    }
}

window.onload = function () {
    var lis = document.querySelectorAll('nav li');
    alert(lis.length);
}